/**
 * CC_Model_NextHost.java
 */
package commands.controller;
import dataTypes.*;


/**
 * A command returning a next host hosting the specified download file.
 * @author Michal Kolodziejski
 */
public class CC_Model_NextHost extends ControllerCommand {
	/** A download file of which a next host was requested. */
	private DownloadFile downloadFile;
	/** A next host hosting the file. */
	private Host nextHost;
	
	
	/**
	 * Constructor
	 * @param downloadFile a download file of which a next host was requested
	 * @param nextHost a next host hosting the file
	 */
	public CC_Model_NextHost(DownloadFile downloadFile, Host nextHost){
		super(ControllerCommandType.MODEL_NEXT_HOST);
		this.downloadFile = downloadFile;
		this.nextHost = nextHost;
	}

	/**
	 * @return the download file of which a next host was requested
	 */
	public DownloadFile getDownloadFile() {
		return downloadFile;
	}

	/**
	 * @return the next host hosting the file
	 */
	public Host getNextHost() {
		return nextHost;
	}
	
}
